from django.db import models

# Create your models here.
class Goods(models.Model):
	name = models.CharField(max_length=20)
	price = models.FloatField()

	class Meta:
		db_table = 'goods'
		verbose_name = '商品管理'
		verbose_name_plural = '商品管理'

class Products(models.Model):
	pc_id = models.IntegerField(verbose_name='类别id')
	name = models.CharField(max_length=50,verbose_name='产品名称')
	status = models.IntegerField(verbose_name='产品状态')
	create_time = models.DateTimeField(verbose_name='创建时间')

	class Meta:
		db_table = 'products'
		verbose_name = '产品管理'
		verbose_name_plural = '产品管理'
